﻿using System.ComponentModel;
using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tDocumentation")]
[XmlRoot("documentation", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class Documentation
{
    /// <remarks/>
    [XmlText]
    [XmlAnyElement]
    public XmlNode[] Any { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("id", DataType = "ID")]
    public string Id { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("textFormat")]
    [DefaultValue("text/plain")]
    public string TextFormat { get; set; } = "text/plain";
}
